Skip to content

Conversation

@sudhanvaghebbale
Copy link

Issue: projectdiscovery/nuclei#6150

Currently, the IsOutdated method under the utils package was checking if the current version of the tool was greater than the latest version. This fails when the version are equal.

Changes made:

  • Use LessThan for comparison
  • Added some tests for this too.

Testing Done:

Before, the version used to say outdated.

[INF] nuclei-templates are not installed, installing...
[INF] Successfully installed nuclei-templates at /Users/sudhanvahebbale/nuclei-templates
[INF] Current nuclei version: **v3.4.2 (outdated)**
[INF] Current nuclei-templates version:  (latest)
[WRN] Scan results upload to cloud is disabled.
...
...

After the fix:

[INF] nuclei-templates are not installed, installing...
[INF] Successfully installed nuclei-templates at /Users/sudhanvahebbale/nuclei-templates
[INF] Current nuclei version: **v3.4.2 (latest)**
[INF] Current nuclei-templates version: v10.1.7 (latest)
[WRN] Scan results upload to cloud is disabled.
...
...

@ehsandeep ehsandeep requested a review from dogancanbakir April 14, 2025 09:38
@dogancanbakir
Copy link
Member

Thanks for the PR!

@dogancanbakir dogancanbakir merged commit 826b46f into projectdiscovery:main Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants